import { defineStore } from 'pinia'
export const useStoreLogin = defineStore('login', {
  state: () => ({
    loginState: true,
    useInfo: {},
    cookie: '',
  }),
  actions: {
    login(useInfo, cookie) {
      this.loginState = true
      this.useInfo = useInfo
      this.cookie = cookie
    },
    logout() {
      this.loginState = false
      this.logSucInfo = {}
    },
  },
})
